package com.jprocms.module.cms.controller.admin.investigateopinion.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 问卷调查提交反馈 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class InvestigateOpinionBaseVO {

    @Schema(description = "站点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30517")
    @NotNull(message = "站点ID不能为空")
    private Long siteId;

    @Schema(description = "问卷ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13691")
    @NotNull(message = "问卷ID不能为空")
    private Long investigateId;

    @Schema(description = "用户ID", example = "24574")
    private Long userId;

    @Schema(description = "IP地址")
    private String ip;

    @Schema(description = "Cookie")
    private String cookie;

}
